package com.echo;

import com.echo.common.utils.AuthorizationUtil;
import com.echo.dao.AuthorizationDAO;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest
public class test {

    @Autowired
    private  AuthorizationUtil authorizationUtil;
    @Autowired
    private AuthorizationDAO authorizationDAO;


    @Test
    public void play(){
        boolean b = authorizationUtil.authorityJudgement(1);
        System.out.println(b);
        System.out.println(authorizationDAO);
    }



}
